<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', '519消防人才网') }}</title>

    <!-- Scripts -->
    <script type="text/javascript" src="{{asset('static/js/jquery.min.js')}}"></script>
    <script type="text/javascript" src="{{asset('static/js/jquery.disappear.tooltip.js')}}"></script>
    <script>
        let qscms = {
            base: "http://www.519xfzp.com",
            keyUrlencode: "{:C('qscms_key_urlencode')}",
            domain: "http://{$_SERVER['HTTP_HOST']}",
            root: "__ROOT__/index.php",
            companyRepeat: "{:C('qscms_company_repeat')}",
            regularMobile: /^13[0-9]{9}$|14[0-9]{9}$|15[0-9]{9}$|18[0-9]{9}$|17[0-9]{9}$|16[0-9]{9}$|19[0-9]{9}$/,
        }
        let regularMobile =  /^13[0-9]{9}$|14[0-9]{9}$|15[0-9]{9}$|18[0-9]{9}$|17[0-9]{9}$|16[0-9]{9}$|19[0-9]{9}$/;
        $.ajaxSetup({
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            }});
    </script>
    <!-- Fonts -->
    <link href="{{ asset('static/css/company/company_index.css') }}" rel="stylesheet">
    <link href="{{asset('static/css/company/common.css')}}" rel="stylesheet" type="text/css">
    <link href="{{asset('static/css/common_ajax_dialog.css')}}" rel="stylesheet" type="text/css">

    <!-- Styles -->
    <style>
        html {
            overflow-y: scroll;
        }
    </style>
</head>
<body>
<div id="app">
    <div class="header_min" id="header">
        <div class="header_min_top">
            <div id="J_header" class="itopl font_gray6 link_gray6">
                <span class="link_yellow">欢迎登录519消防人才网！请
                    <a href="javascript:;" id="J_site_login">登录</a> 或
                    <a href="javascript:;" id="J_site_reg">免费注册</a>
                </span>
            </div>
            <div class="itopr font_gray9 link_gray6 substring new">
                <a href="http://www.tywangcai.com/" class="home">网站首页</a>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="other_top_nav">
        <div class="ot_nav_box">
            <div class="ot_nav_logo"><a href="/"><img src="{{asset('/static/banner/logo.png')}}" border="0"></a></div>
            <div class="ot_nav_sub">
            </div>
            <div class="ot_nav_link ">
                <ul class="link_gray6 nowrap">
                    <li class="on_li J_hoverbut select"><a href="{{url('company')}}">企业中心</a></li>
                    <li class="on_li J_hoverbut"><a href="{{url('company/job')}}">职位管理</a></li>
                    <li class="on_li J_hoverbut"><a href="{{url('company/resume')}}">简历管理</a></li>
                    <li class="on_li J_hoverbut"><a href="{{url('company/info')}}">账号管理</a></li>
                </ul>
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <main class="py-4">
        @yield('content')
    </main>
</div>
<script type="text/javascript" src="{{asset('static/js/jquery.modal.dialog.js')}}"></script>
<script>
    // 注册
    $('#J_site_reg').die().live('click', function () {
        $(".modal,.modal_backdrop").remove();
        siteRegModelShow();
    })

    // 显示注册
    function siteRegModelShow() {
        var siteLoginDialog = $(this).dialog({
            title: false,
            loading: true,
            footer: false,
            header: false,
            border: false,
            backdrop: false
        });

        $.getJSON("{{url('auth/ajax_register')}}", function (result) {

            siteLoginDialog.hide();
            let LoginDialog = $(this).dialog({
                title: false,
                content: result.data.html,
                footer: false,
                header: false,
                border: false,
                innerPadding: false,
                backdrop: true
            });
            // } else {
            //     siteLoginDialog.hide();
            //     disapperTooltip("remind", result.msg);
             });
    }
        //})
</script>
</body>
</html>
